package com.lyc.cart.bean;

import java.util.Date;

/**
 * 订单类
 */
public class Order {
    private int id;//订单id
    private int uid;//用户编号
    private int productId;//商品编号
    private  String orderNumber;//订单编号
    private double payPrice;//支付总价
    private Date createTime;//订单创建时间

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public double getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(double payPrice) {
        this.payPrice = payPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", uid=" + uid +
                ", productId=" + productId +
                ", orderNumber='" + orderNumber + '\'' +
                ", payPrice=" + payPrice +
                ", createTime=" + createTime +
                '}';
    }
}
